package com.lzp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author lzp
 * @since 2025-01-13
 */
@Getter
@Setter
public class Teacher implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "tid", type = IdType.AUTO)
    private Integer tid;

    private String tname;

    private String sex;

    private Integer age;

    private String addr;

    private Integer sid;

    @TableField(exist = false)//该字段为教师所属分院名称字段，原本并不存在
    private String sname;

    @TableLogic//删除时候用到的字段，用来确定记录是否已被删除
    private Integer deleted;


}













